package com.zh.vis;

import java.util.List;

/**
 * Copyright (C) 广州中和互联网技术有限公司
 *
 * @author 范家微 fanjiawei@borche.cn
 * @date :2021/1/16 12:07
 */
public class 递归 {
	public static final String[] names = {"我", "是", "蒙", "泽", "婷"};
	public static String name = "";

	public static void main(String[] args) {
		int i = 0;
		String name = getName(i);
		System.out.println(name);
	}


	static String getName(int i) {
		if (i == names.length) {
			return name;
		}

		name += names[i];
		i++;
		return getName(i);
	}
}
